home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 62 / Quick PC 62.iso / Programs / WebcamXP.Pro.v1.02.590.WinALL / wxp_pro.exe / $INSTDIR / sound.swf / scripts / DefineButton2_12 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2003-07-01  |  706 b   |  23 lines

  1. on(press){
  2.    if(playing02 != true && playing != true)
  3.    {
  4.       playing02 = true;
  5.       paused02 = false;
  6.       stopped02 = false;
  7.       loaded02 = true;
  8.       myEvent = 0;
  9.       myStreaming = 1;
  10.       myMusic02 = new Sound();
  11.       myMusic02.loadSound(audiostream,true);
  12.       myMusic02Position = 0;
  13.       myMusic02Volume = 50;
  14.       myMusic02.setVolume(myMusic02Volume);
  15.       mySongTypeText = "Streaming Sound";
  16.       myInfoText = "Streaming sounds play as soon as enough data is received to begin playback. The sound will play after beginning to load, even without the mySound.start() call.";
  17.    }
  18.    myMusic02.onSoundComplete = function()
  19.    {
  20.       playing02 = false;
  21.    };
  22. }
  23.